#if !defined(SAVESVR_H_)
#define SAVESVR_H_

#include "Param.h"

#include <mp4v2/mp4v2.h>

typedef struct _SaveInfo
{		
		int iSendStatus;
		
		int frameRate;
		int *piMulti;
		
		time_t tt;
		unsigned int stampVideo;		
		unsigned int stampAudio;	
		unsigned int countVideo;		
		unsigned int countAudio;						
		int offAudio;
		int numAudio;	
		
		int numSPS;
		int numPPS;
		
		MP4FileHandle m_hMp4;
		
		MP4TrackId videoMp4Track;
		MP4TrackId audioMp4Track;
					
		char sType[80];
		char sMp4Path[400];
		char sMp4PathTemp[400];
		unsigned char pSps[400];
		unsigned char pPps[400];
				
		unsigned char pDelayAudio[AUDIO_DELAY_SIZE];
		unsigned char pBuffer[AUDIO_DELAY_SIZE];	
		
		int w;
		int h;		
		
		BlockInfo* pExternalBlockInfo;
		char pExternalType[80];
		int *pExternaliMulti;
		
}SaveInfo;


int InitSavesvr(BlockInfo *pBlockInfo, const char *pType,int *piMulti);

#endif
